<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2.6.10/dist/vue.js"></script>
</head>

<body>
    <div id="app">
        <button @click="isLoad = true">登陆</button>
        <button @click="isLoad = false">注册</button>

        <template v-if = isLoad>
            <div>
                <h1>登陆</h1>
                <p>这个是登陆</p>
                <p>请输入登陆密码</p>
            </div>
        </template>


        <template v-else>
            <div>
                <h1>注册</h1>
                <p>这个是注册</p>
                <p>请输入注册密码</p>
            </div>
        </template>

    </div>
    <script>
        Vue.config.productionTip = false;

        const vm = new Vue({
            el: "#app",
            data() {
                return {
                    isLoad: true
                }
            }
        })
    </script>
</body>
</html>